
import axios from 'axios'

let request = axios.create({
  baseURL: `${location.origin}`,
  timeout: 5000,
})

request.interceptors.request.use((request) => {
  return request

}, (error) => {
  throw (error)
})

request.interceptors.response.use((response) => {

  return response.data

}, () => {

})


export default request;
